﻿using System.Threading.Tasks;

namespace Sidvall.Web.IO
{
    public class StorageFactory : IStorageFactory
    {
        public async Task<Sidvall.IO.IStorage> CreateAsync(Store store)
        {
            var item = new Sidvall.Web.IO.Storage()
            {
                Store = store,
                StorageManager = store.GetStorageManager(),
            };
            return await Task.FromResult(item).ConfigureAwait(false);
        }
    }
}
